{
	r++;
	rel_r = ($1 >= relevant_level ? 1 : 0);
	num_retrieved += 1;
	num_relevant_retrieved += rel_r;

	if (num_relevant_total > 0) {
		precision = num_relevant_retrieved / num_retrieved;
		recall = num_relevant_retrieved / num_relevant_total;
		print recall, precision;
	}
}
